package com.nbjtjc.safe.mapper.safe;

import com.nbjtjc.safe.model.safe.SafeEnterprise;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SafeEnterpriseMapper extends MyMapper<SafeEnterprise> {

    List<SafeEnterprise> search(@Param("se") SafeEnterprise safeEnterprise);

    @Select("select name from safe_enterprise where id=#{enterpriseId}")
    String findNameById(@Param("enterpriseId") int enterpriseId);
}